package com.hunter.sign.dao.model;

import java.io.Serializable;

public class SignUserContract implements Serializable {
    /**
     * 主键id
     *
     * @mbg.generated
     */
    private Long userContractId;

    /**
     * 合同id
     *
     * @mbg.generated
     */
    private Long contractId;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Long userId;

    /**
     * 用户指纹图像路径
     *
     * @mbg.generated
     */
    private String userFingerprintImg;

    /**
     * 见证人指纹图像路径
     *
     * @mbg.generated
     */
    private String witnessFingerprintImg;

    /**
     * 用户输入信息
     *
     * @mbg.generated
     */
    private String fieldFill;

    /**
     * 合成的work文档路径
     *
     * @mbg.generated
     */
    private String wordUrl;

    /**
     * 合成的pdf文档路径
     *
     * @mbg.generated
     */
    private String pdfUrl;

    /**
     * 状态（0：待用户输入 1：待用户指纹输入 2：待见证员指纹输入 3：待确认 4：合同完成）
     *
     * @mbg.generated
     */
    private Integer state;

    /**
     * 创建时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long createTime;

    /**
     * 修改时间（毫秒数）
     *
     * @mbg.generated
     */
    private Long modifyTime;

    private static final long serialVersionUID = 1L;

    public Long getUserContractId() {
        return userContractId;
    }

    public void setUserContractId(Long userContractId) {
        this.userContractId = userContractId;
    }

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserFingerprintImg() {
        return userFingerprintImg;
    }

    public void setUserFingerprintImg(String userFingerprintImg) {
        this.userFingerprintImg = userFingerprintImg;
    }

    public String getWitnessFingerprintImg() {
        return witnessFingerprintImg;
    }

    public void setWitnessFingerprintImg(String witnessFingerprintImg) {
        this.witnessFingerprintImg = witnessFingerprintImg;
    }

    public String getFieldFill() {
        return fieldFill;
    }

    public void setFieldFill(String fieldFill) {
        this.fieldFill = fieldFill;
    }

    public String getWordUrl() {
        return wordUrl;
    }

    public void setWordUrl(String wordUrl) {
        this.wordUrl = wordUrl;
    }

    public String getPdfUrl() {
        return pdfUrl;
    }

    public void setPdfUrl(String pdfUrl) {
        this.pdfUrl = pdfUrl;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Long modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userContractId=").append(userContractId);
        sb.append(", contractId=").append(contractId);
        sb.append(", userId=").append(userId);
        sb.append(", userFingerprintImg=").append(userFingerprintImg);
        sb.append(", witnessFingerprintImg=").append(witnessFingerprintImg);
        sb.append(", fieldFill=").append(fieldFill);
        sb.append(", wordUrl=").append(wordUrl);
        sb.append(", pdfUrl=").append(pdfUrl);
        sb.append(", state=").append(state);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SignUserContract other = (SignUserContract) that;
        return (this.getUserContractId() == null ? other.getUserContractId() == null : this.getUserContractId().equals(other.getUserContractId()))
            && (this.getContractId() == null ? other.getContractId() == null : this.getContractId().equals(other.getContractId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUserFingerprintImg() == null ? other.getUserFingerprintImg() == null : this.getUserFingerprintImg().equals(other.getUserFingerprintImg()))
            && (this.getWitnessFingerprintImg() == null ? other.getWitnessFingerprintImg() == null : this.getWitnessFingerprintImg().equals(other.getWitnessFingerprintImg()))
            && (this.getFieldFill() == null ? other.getFieldFill() == null : this.getFieldFill().equals(other.getFieldFill()))
            && (this.getWordUrl() == null ? other.getWordUrl() == null : this.getWordUrl().equals(other.getWordUrl()))
            && (this.getPdfUrl() == null ? other.getPdfUrl() == null : this.getPdfUrl().equals(other.getPdfUrl()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserContractId() == null) ? 0 : getUserContractId().hashCode());
        result = prime * result + ((getContractId() == null) ? 0 : getContractId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUserFingerprintImg() == null) ? 0 : getUserFingerprintImg().hashCode());
        result = prime * result + ((getWitnessFingerprintImg() == null) ? 0 : getWitnessFingerprintImg().hashCode());
        result = prime * result + ((getFieldFill() == null) ? 0 : getFieldFill().hashCode());
        result = prime * result + ((getWordUrl() == null) ? 0 : getWordUrl().hashCode());
        result = prime * result + ((getPdfUrl() == null) ? 0 : getPdfUrl().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        return result;
    }
}